package cn.tedu.test.luban.demo.bean;

import org.springframework.beans.factory.annotation.Value;

public class Bean03 {

    @Value("${luban.user.name}")
    private String username;

    public Bean03(){
        System.out.println("Bean03被容器加载...");
    }

    public void hello(){
        System.out.println("bean03对["+username+"]说你好!!");
    }

}
